package lab02.text12;

/**
 * Created by dell on 2017/10/25.
 */
public class Rectangular extends Shape{
    //属性
    double width;
    double height;

    @Override
    double area() {
        return width*height;

    }
    @Override
    double perimeter() {
        return 2*width + 2 * height;
    }
}
